// 一般大类使用抽象类
abstract class Aniaml {
  eat(food: string): void {
    console.log(`呼噜呼噜的吃：${food}`);
  }

  abstract run(distance: number): void;
}

class Dog extends Aniaml {
  run(distance: number): void {
    console.log(`爬行:${distance}`);
  }
}

const d = new Dog();
d.eat("哈希码");
d.run(100);
